﻿using System;
using System.Collections.Generic;
using System.Text;
using Pahan.McuFusion.Common;

namespace Pahan.McuFusion.UI.Interfaces.NewWorkspaceWizardPages
{
    public interface IProgrammerPage : IWizardPage
    {
        /// <summary>
        /// Shows the list of the available programmers.
        /// </summary>
        void ShowProgrammers(IList<ProgrammerInfo> programmers);

        /// <summary>
        /// Shows the list of the available microcontrollers.
        /// </summary>
        void ShowMicrocontrollers(IList<DeviceInfo> mcus);

        /// <summary>
        /// Gets the selected programmer.
        /// </summary>
        ProgrammerInfo SelectedProgrammer
        {
            get;
        }

        /// <summary>
        /// Gets the selected MCU.
        /// </summary>
        DeviceInfo SelectedMicrocontroller
        {
            get;
        }

        /// <summary>
        /// Raised when the selected programmer has changed.
        /// </summary>
        event EventHandler SelectedProgrammerChanged;

        /// <summary>
        /// Raised when the selected MCU has changed.
        /// </summary>
        event EventHandler SelectedMicrocontrollerChanged;
    }
}
